import request from '@/utils/request'

// 创建原水记录
export function createQtOriginal(data) {
  return request({
    url: '/water/qt-original/create',
    method: 'post',
    data: data
  })
}

// 更新原水记录
export function updateQtOriginal(data) {
  return request({
    url: '/water/qt-original/update',
    method: 'put',
    data: data
  })
}

// 删除原水记录
export function deleteQtOriginal(id) {
  return request({
    url: '/water/qt-original/delete?id=' + id,
    method: 'delete'
  })
}

// 获得原水记录
export function getQtOriginal(id) {
  return request({
    url: '/water/qt-original/get?id=' + id,
    method: 'get'
  })
}

// 获得原水记录分页
export function getQtOriginalPage(query) {
  return request({
    url: '/water/qt-original/page',
    method: 'get',
    params: query
  })
}

// 导出原水记录 Excel
export function exportQtOriginalExcel(query) {
  return request({
    url: '/water/qt-original/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
